package com.cos.shop.common;

/**
 * @author: COS
 * @time: 2023/5/9 15:42
 * @description:
 */
public interface Const {
    String FORWARD = "forward:";
    String REDIRECT = "redirect:";
    // 发送前端消息的key
    String MSG = "msg";
    // 进入前端显示消息的页面
    String MESSAGE = "forward:message.jsp";
    //短信验证码的key
    String MESSAGE_CODE = "message_code";
    // 登录用户数据的 key
    String LOGIN_INFO = "login_info";
    // 百度智能云, 密钥
    String SECRET_KEY = "1a5daeb0c6814369abebefdea547225a";
    // 访问key
    String ACCESS_KEY = "eeafe85471614fab9b382f21be3f25b2";
    // 自动登录的key
    String AUTO_KEY = "auto_login";

    int DEFAULT_ADDRESS = 1;
    int NOT_DEFAULT_ADDRESS = 0;

    public interface OrderState {
        // 订单状态 0 未付款，1已经付款未发货 2发货待收货 3 收货待评价 4订单完成 5 退货状态
        int NOT_PAY = 0;// 未付款，
        int PAY = 1;//已经付款未发货
        int SEND = 2;//发货待收货
        int RECEIVE = 3;// 收货待评价
        int DONE = 4;//订单完成
        int RETURN = 5;// 退货状态

    }

    public interface Time {
        //2周秒数
        int TWO_WEEK_SEC = 1209600;
    }

    public interface UserRole {
        //账户已激活
        int ACTIVE = 1;
        //账户未激活
        int NOT_ACTIVE = 0;
        //管理员
        int ADMIN = 1;
        //普通用户
        int USER = 0;
    }
}
